package com.car.carmgr.service;

import com.car.carmgr.bean.Car;
import com.car.carmgr.bean.Rent;
import com.github.pagehelper.PageInfo;

import java.util.Date;

public interface CarService {

    int insertCar(Car car);

    int deleteCarById(String carId);

    int updateCar(Car car);

    int findCarById(String carNumber);

    /**
     * 查询用户
     */
    PageInfo<Car> findCarByWhere(String carNumber, String carType, String color, Double price, Double rentPrice, Double deposit, Integer isRenting, String description, String carImg, Date createTime, Integer page, Integer limit);

    Integer getCountByWhere(String carNumber,String carType, String color, Double price,Double rentPrice,Double deposit,Integer isRenting,String description,String carImg, Date createTime);

    int deleteSomeCar(String[] split);

    PageInfo<Car> findALL(Integer page, Integer limit);

    Integer getCount();
}
